import request from '@/utils/request'

/**
 * 字典
 */
export function getDictByCode(dictCode) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/sysDictionary/getDictByCode',
    method: 'get',
    params: { dictCode }
  })
}

/**
 * 设置直播提醒
 * @param {*} data
 */
export function set(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/liveActivity/setPersonalizedConfig',
    method: 'post',
    data
  })
}

/**
 * 查询配置
 * @param {*} id
 */
export function get(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/liveActivity/getPersonalizedConfig',
    method: 'post',
    data
  })
}

/**
 * 获取模板列表
 * @param data
 * @returns {*}
 */
export function getTemplateOptions(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/templatePool/queryPage',
    method: 'post',
    data
  })
}
